//
//  PackageDetailNaviView.h
//  BaseProject
//
//  Created by 王洋 on 2020/8/2.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, SegmentPackageDetailSelType) {
    //套餐
    SegmentPackageDetailSelType_package,
    //评价
    SegmentPackageDetailSelType_evaluate,
    //详情
    SegmentPackageDetailSelType_Detail,
    //权益
    SegmentPackageDetailSelType_Quanyi,
};

typedef NS_ENUM(NSInteger, PackageDetailNaviViewActionType) {
    //返回
    PackageDetailNaviViewActionType_back,
    //收藏
    PackageDetailNaviViewActionType_collect,
    //im
    PackageDetailNaviViewActionType_im,
    //添加购物车
    PackageDetailNaviViewActionType_share,
};

typedef NS_ENUM(NSInteger, GoodsNaviViewStatusType) {
    //透明底
    GoodsNaviViewStatusType_clear,
    //白底
    GoodsNaviViewStatusType_white
};

@interface PackageDetailNaviView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *naviBgImageView;

@property (weak, nonatomic) IBOutlet UIView *segBGView;
@property (weak, nonatomic) IBOutlet UIImageView *quanyiIcon;


@property (weak, nonatomic) IBOutlet UIButton *backBtn;

@property (weak, nonatomic) IBOutlet UIButton *shareBtn;

@property (weak, nonatomic) IBOutlet UIButton *favorBtn;

@property (weak, nonatomic) IBOutlet UIButton *msgBtn;

@property (nonatomic, assign) BOOL isCollect;
@property (nonatomic, assign) GoodsNaviViewStatusType naviViewStatus;

@property (nonatomic, copy) void(^PackageDetailNaviViewBlock )(PackageDetailNaviViewActionType actionType);

@property (nonatomic, copy) void(^PackageDetailSegBlock )(SegmentPackageDetailSelType type);


- (void)refreshNaviFavorStatusWith:(BOOL)isCollect;

- (void)fillWithSegType:(SegmentPackageDetailSelType)type;

- (void)fillWithNaviStatus:(GoodsNaviViewStatusType)naviViewStatus isCollect:(BOOL)isCollect alpha:(CGFloat)alpha;

@end

NS_ASSUME_NONNULL_END
